package com.uyayo.blog.service;

import com.uyayo.blog.bo.BlogBO;
import com.uyayo.blog.model.BlogExCondition;
import com.uyayo.framework.common.exception.CategoryNotFoundException;
import com.uyayo.framework.common.exception.ModifiedRecordNotExistException;
import com.uyayo.framework.core.service.IBaseService;
import com.uyayo.framework.pagehelper.Pageable;
import com.uyayo.framework.pagehelper.pojo.PageBean;
import com.uyayo.blog.entity.Blog;
import com.uyayo.blog.model.BlogCondition;
import com.uyayo.framework.pagehelper.pojo.PageOrderCondition;

import java.util.List;

public interface BlogService extends IBaseService<Blog>{

	List<Blog> selectBlog(BlogCondition blogCondition);

	PageBean<Blog> selectBlogByPaging(Pageable<BlogCondition> pageable);

	int saveBlog(Blog blog) throws CategoryNotFoundException;

	int updateBlog(Blog blog) throws CategoryNotFoundException, ModifiedRecordNotExistException;

	PageBean<BlogBO> selectBlogByPaging(PageOrderCondition pageOrderCondition, BlogExCondition blogExCondition);

}
